package com.snpic.appaw.module.third.api.aliyun;

import com.aliyun.dypnsapi20170525.models.GetAuthTokenResponseBody;
import com.fhs.core.trans.anno.AutoTrans;
import com.snpic.appaw.framework.common.pojo.CommonResult;
import com.snpic.appaw.module.third.api.aliyun.dto.GetAuthTokenRequestDTO;
import com.snpic.appaw.module.third.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import static com.snpic.appaw.module.third.api.aliyun.PhoneNumberAuthenticationApi.PREFIX;
/**
 * @author JiJun
 * @date 2025/9/21 15:25
 * @修改时间 2025/9/21 15:25
 * @description 阿里云号码认证API
 */
@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 阿里云，号码认证API")
@AutoTrans(namespace = PREFIX, fields = {"nickname"})
public interface PhoneNumberAuthenticationApi {

			String PREFIX = ApiConstants.PREFIX + "/aliyun";

	@PostMapping(PREFIX + "/getAuthToken")
	@Operation(summary = "获取 H5 认证授权 Token")
	public CommonResult<GetAuthTokenResponseBody> getAuthToken(@RequestBody @Valid GetAuthTokenRequestDTO reqDTO);
}
